//index.js
//获取应用实例
import { Index } from 'index-model.js';
import { Config } from '../../../utils/config.js';
var Function = require("../../../utils/function.js");
var index = new Index();  //实例化 home 的推荐页面
const app = getApp();

Page({
  data: {
    
  },
  //事件处理函数
  bindViewTap: function() {
    wx.navigateTo({
      url: '../logs/logs'
    })
  },
  onLoad: function () {
    this.config();
  },
  config:function(){
    let that=this;
    index.config((res)=>{
      if(res.code==200){
        that.setData({
          config:res.data
        })
      }
    })
  },
})
